# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=steghide
pkgver=0.5.1.1
pkgrel=0
pkgdesc="Steganography program that is able to hide data in various kinds of image- and audio-files"
url="https://github.com/museoa/steghide"
arch="all"
license="GPL-2.0-or-later"
options="!check" # fixme: fails for au and wav
makedepends="libmcrypt-dev jpeg-dev zlib-dev libmhash-dev
	bash gettext-dev libtool automake autoconf"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/museoa/steghide/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver/src"

prepare() {
	default_prepare

	aclocal
	autoconf
	libtoolize
	autoreconf -fvi
}

build() {
	./configure \
		--prefix=/usr \
		--disable-rpath \
		--disable-nls
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
2fcaeda85b145f5d5ff92d26f1b98fac745b4f6bd09ae5d0fef3413fb86674da19714d93c882de774f21beb381f5bac4ca0517269821b9811e07706e6e6d72e6  steghide-0.5.1.1.tar.gz
"
